package com.wz.dao;

import com.domain.Account;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

public interface AccountDao {
    //此方法是修改账户金钱
    @Update(" update account set money=#{money} where uuuid=#{uuuid}")
    int update(@Param("uuuid") Integer uuuid, @Param("money") Double money);

    //查询单个账户信息
    @Select("select * from account where uuuid = #{uuuid}")
    Account get(Integer uuuid);
}
